package com.entity;

import java.io.Serializable;
import javax.persistence.*;

import com.alibaba.fastjson.annotation.JSONField;

import java.math.BigDecimal;
import java.util.Date;


/**
 * The persistent class for the "DELIVERRECORD_copy" database table.
 * 
 */
@Entity
@Table(name="\"DELIVERRECORD_copy\"")
@NamedQuery(name="DELIVERRECORD_copy.findAll", query="SELECT d FROM DELIVERRECORD_copy d")
public class DELIVERRECORD_copy implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@SequenceGenerator(name="DELIVERRECORD_COPY_DRID_GENERATOR", sequenceName="SEQ",initialValue=1,allocationSize=1)
	@GeneratedValue(strategy=GenerationType.SEQUENCE, generator="DELIVERRECORD_COPY_DRID_GENERATOR")
	@Column(name="DR_ID")
	private long drId;

	private String customername;

	@Temporal(TemporalType.DATE)
	@Column(name="DR_DATE")
	private Date drDate;

	@Column(name="DR_RECEIVE")
	private String drReceive;

	@Column(name="DR_REMARK")
	private String drRemark;

	@Column(name="DR_STATE")
	private BigDecimal drState;

	@Temporal(TemporalType.DATE)
	@Column(name="DR_TIME")
	private Date drTime;

	//bi-directional many-to-one association to Customer
	@OneToOne
	@JoinColumn(name="REPAIRORDER_ID")
	@JSONField(serialize=false)
	private Repairorder repairorder;

	//维修工单id
	@Transient
	private Long repairorderId;

	public DELIVERRECORD_copy() {
	}

	public long getDrId() {
		return this.drId;
	}

	public void setDrId(long drId) {
		this.drId = drId;
	}

	public String getCustomername() {
		return this.customername;
	}

	public void setCustomername(String customername) {
		this.customername = customername;
	}

	public Date getDrDate() {
		return this.drDate;
	}

	public void setDrDate(Date drDate) {
		this.drDate = drDate;
	}

	public String getDrReceive() {
		return this.drReceive;
	}

	public void setDrReceive(String drReceive) {
		this.drReceive = drReceive;
	}

	public String getDrRemark() {
		return this.drRemark;
	}

	public void setDrRemark(String drRemark) {
		this.drRemark = drRemark;
	}

	public BigDecimal getDrState() {
		return this.drState;
	}

	public void setDrState(BigDecimal drState) {
		this.drState = drState;
	}

	public Date getDrTime() {
		return this.drTime;
	}

	public void setDrTime(Date drTime) {
		this.drTime = drTime;
	}

	public Repairorder getRepairorder() {
		return repairorder;
	}

	public void setRepairorder(Repairorder repairorder) {
		this.repairorder = repairorder;
	}

	public Long getRepairorderId() {
		return repairorderId;
	}

	public void setRepairorderId(Long repairorderId) {
		this.repairorderId = repairorderId;
	}

}